Skip to content

fix transforming sortable items#114

Open
yonathan06 wants to merge 1 commit into
thisbeyond:mainfrom
yonathan06:main
Open

fix transforming sortable items#114
yonathan06 wants to merge 1 commit into
thisbeyond:mainfrom
yonathan06:main

Conversation

@yonathan06

Copy link
Copy Markdown

I experienced an issue where sortable items with different heights were not transformed properly
The issue was that the delta was calculated as target.x - current.x (or target.y - current.y)
the delta was the diff between an item and the one before/after them, instead of the size of the dragged item
Changed it to transform based on the size of the dragged item

here is a reproduction repo https://stackblitz.com/edit/solidjs-templates-atuhev

@Terbiy

Terbiy commented Nov 25, 2025

Copy link
Copy Markdown

@martinpengellyphillips, hi! Thank you for the library! Could you please merge this one so that dragging elements of different heights will work?

@Codisy1

Codisy1 commented Nov 25, 2025

Copy link
Copy Markdown

@martinpengellyphillips, hi! Thank you for the library! Could you please merge this one so that dragging elements of different heights will work?

This is really a very important part of the functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants